package com.bi.student.dubbo.consumers.impl;

import com.bi.sampleapi.DubboStudentApiService;
import com.bi.student.dubbo.consumers.StudentService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;


@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @DubboReference(mock = "com.bi.student.dubbo.consumers.mock.DubboStudentApiServiceMock"
            , interfaceClass = DubboStudentApiService.class, version = "1.0.0")
    private DubboStudentApiService dubboStudentApiService;

    @Override
    public int getActivity() {
        return dubboStudentApiService.getActivity();
    }
}
